import fetch from 'common/src/utils/fetch'
import UTILS from "common/src/utils/utils";

//获取本科生的学生列表
function getBkStudentList(data) {
    return fetch({
        url: '/api/electionservice/elcMutualList/elcMutualStuList',
        data:data,
        method: 'post',
    });
}
//获取审核的状态
function getStatus(data){
    return fetch({
        url:'/api/electionservice/elcMutualAudit/queryAuditLogList',
        data,
        method:'post'
    })
}
//导出
function exportDatas(data){
    return fetch({
        url:'/api/electionservice/elcMutualList/exportelcMutualStuList',
        data,
        method:'post',
        responseType: 'blob'
    }).then(res => {
        UTILS.downloadFile(res, '学生名单.xlsx', 'application/vnd.ms-excel;charset=utf-8');
    });
}

export default {
    getBkStudentList,
    getStatus,
    exportDatas
}



